//@ts-ignore
import axios from '../utils/axios';
export default {
  addMenu(params:object):Promise<any>{
    return axios.post('/menu', params);
  },
  fixMenu(id:number, params:object):Promise<any>{
    return axios.put('/menu/'+id, params);
  },
  delMenu(id:number):Promise<any>{
    return axios.delete('/menu/'+id);
  },
  infoMenu(id:number):Promise<any>{
    return axios.get('/menu/'+id);
  },
  pageMenu(params:object):Promise<any>{
    return axios.get('/menu',{ params });
  }
}